package com.apes.fn.server.praticalFunction.repository;

import com.apes.fn.server.praticalFunction.model.AdapterClassify;
import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.account.account.model.Stock;
import com.apes.scm.masterdata.product.model.Classify;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Created by lishikun on 2021/6/11 14:50
 */
public interface AdapterClassifyRepository extends CustomRepository<AdapterClassify,String> {
    AdapterClassify findByClassify(Classify classify);

    @Query("select s from AdapterClassify s where s.smartAccessoriesConfig.id <> :id ")
    List<AdapterClassify> findAllBySmartAccessoriesConfig(@Param("id") String id);
}
